module.exports = function (app) {
  const { router, middleware } = app;
 
  const prefix = "/api/directory";
  const controller = app.controller.directory;
  router.get(prefix + "/list", controller.list);
  router.get(prefix + "/navList", controller.navList);
  router.post(prefix + "/create", middleware.auth(), controller.create);
  router.post(prefix + "/delete", middleware.auth(), controller.delete);
  router.post(prefix + "/update", middleware.auth(), controller.update);
  router.post(prefix + "/updateStatus", middleware.auth(), controller.updateStatus);
  router.post(prefix + "/setNextOrder", middleware.auth(), controller.setNextOrder);
  router.post(prefix + "/setPrevOrder", middleware.auth(), controller.setPrevOrder);


};
